package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.system.entity.SysUserCompanyRel;

import java.util.List;

/**
 * @Description: sys_user_company_rel
 * @Author: jeecg-boot
 * @Date:   2023-08-30
 * @Version: V1.0
 */
public interface SysUserCompanyRelMapper extends BaseMapper<SysUserCompanyRel> {

    @Select("select name from company_info where code = #{companyCode}")
    String queryCompanyNameByCompanyCode(@Param("companyCode") String companyCode);

    List<SysUserCompanyRel> pageList(@Param("model") SysUserCompanyRel sysUserCompanyRel);

}
